class PagesController < ApplicationController
  def show
    @post = Post.where(slug: params[:slug]).first
    raise ActiveRecord::RecordNotFound.new "Missing page: #{params[:slug]}" if @post.blank?
  end
end
